package com.xintonghua.bussiness.ui.fragment.college;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.xintonghua.bussiness.R;
import com.xintonghua.bussiness.base.BaseActivity;
import com.xintonghua.bussiness.ui.home.AddProductActivity;
import com.xintonghua.bussiness.ui.home.AddProjectActivity;
import com.xintonghua.bussiness.ui.home.AddServicePersonActivity;
import com.xintonghua.bussiness.util.JumpUtils;
import com.xintonghua.bussiness.util.MyState;

import java.util.HashMap;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class JiaMuActivity extends BaseActivity {

    @BindView(R.id.tv_numbers)
    TextView tvNumbers;
    @BindView(R.id.fl_1)
    FrameLayout fl1;
    @BindView(R.id.tv_type)
    TextView tvType;
    @BindView(R.id.fl_2)
    FrameLayout fl2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jia_mu);
        ButterKnife.bind(this);
        onSimpleActionBar();
        setSimpleActionBar("价目表");
    }

    @OnClick({R.id.fl_1, R.id.fl_2})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.fl_1:
                HashMap<String, String> map = new HashMap<>();
                map.put("type", "1");
//                startActivityForResult(new Intent(JiaMuActivity.this, AddProjectActivity.class), MyState.requestTwo);
                JumpUtils.jumpto(JiaMuActivity.this, AddProjectActivity.class, map);
//                JumpUtils.jumpto(JiaMuActivity.this,);
                break;
            case R.id.fl_2:
                HashMap<String, String> map1 = new HashMap<>();
                map1.put("type", "1");
                JumpUtils.jumpto(JiaMuActivity.this, AddProductActivity.class, map1);
//                startActivityForResult(new Intent(JiaMuActivity.this, AddProductActivity.class), MyState.requestTwo);
//
                break;
        }
    }
}
